const mongoose = require('mongoose')
const Scheme = mongoose.Schema
mongoose.connect('mongodb://localhost/code_order')

const carouselSchema = new Scheme({
  carousel: {  //轮播图
    type: String,
    required: true
  },
})

const Carousel = mongoose.model('carousel', carouselSchema)
module.exports = Carousel
